package com.mzj.saas.mservice.property.repository;

import com.mzj.saas.mservice.property.entity.DepartmentRemaining;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface DepartmentRemainingRepository extends JpaRepository<DepartmentRemaining, Long>, JpaSpecificationExecutor<DepartmentRemaining> {
    List<DepartmentRemaining> findByDepId(Long depId);

    List<DepartmentRemaining> findByOrgId(Long orgId);

    DepartmentRemaining findByDepIdAndOrgId(Long depId, Long orgId);
}
